package com.bainuo.doctor.common.network_engine;

import com.bainuo.doctor.common.network_engine.CallBack;
import com.bainuo.doctor.common.network_engine.UpLoadFileCallBack;
import com.bainuo.doctor.common.network_engine.UpLoadFileResponse;

import java.io.File;
import java.util.Map;

/**
 * 文件上传
 * Created by admin on 2017/2/16.
 */

public interface UpFileServerApi  {

    /**
     * 上传
     */
    public void upLoadFile(String url,Map<String,String> param, File file, UpLoadFileCallBack<UpLoadFileResponse> callBack);

//    public static String TYPE_AVATAR = "useravatar";
//    public static String TYPE_MEDIC ="medicalrecord";
//    public static String TYPE_DOCTOR ="doctorqualification";

    public static String TYPE_MEDIC ="editor";
    public static String TYPE_DOCTOR ="editor";
    public static String TYPE_AVATAR = "editor";
    /**
     * 获取上传参数
     * @param type
     * @param callBack
     */
    void getUploadParma(String type,CallBack<Map<String,String>> callBack);
}
